<!--main-->
<div id="wrapper"> 
	<fieldset>
		<legend>
    <%= link_to '下载分类', new_dsort_path %>
    <%= link_to '增加内容', new_download_path %>
    </legend>
      <table style="width:100%" class="table table-bordered">
        <thead>
          <th>名称</th>
          <th>版本</th>
          <th>大小</th>
          <th>发布时间</th>
          <th>下载地址</th>
          <th>分类</th>
          <th>状态</th>
          <th>管理</th>
        </thead>
        <tbody>
        <% @downloads.each do |d| %>
          <tr>
            <td><%= d.title %></td>
            <td><%= d.version %></td>
            <td><%= d.filesize %></td>
            <td><%= d.pubtime %></td>
            <td><%= d.downurl %></td>
            <td><%= d.category %></td>
            <td>
            <% if d.status == 0 %>启用
            <% elsif d.status == 1 %>禁用
            <% end %>
            </td>
            <td>
            <%= link_to edit_download_path(d.id), :class => 'ddm' do %>
              <span class="icon icon145"></span>
            <% end %>
            </td>
          </tr>
          <% end %>
        </tbody>
      </table>
      </fieldset>
      </div>
